<!-- 卖家中心 -->
<script setup>
import { ref } from "vue";

/* const  tableData=[
    {
        msg:'2024-6-28',//商品信息
        price:'11',//价格
        totality:'82',//总库存
        click:'116',//点击量
        SalesVolume:'',// 销量
        time:'',// 时间
        state:'',// 状态
        link:'',// 链接
        operation:'',// 操作
        advanced:'',// 高级操作
    } */
    const  tableData=[
        {
            msg:'2024-6-28',//商品信息
            price:'11',//价格
            totality:'82',//总库存
            click:'116',//点击量
            SalesVolume:'好多备注备注备注备注',// 销量
            time:'1',// 时间
        }
    ]
</script>


<template>
    <div class="main-header">
      <div class="main-header-title">账户余额 </div>
      <div class="main-header-avater">
        <div class="main-header-avater-img">
          <img src="../../assets/avater.jpg" alt="" />
        </div>
        <div class="main-header-avater-username">Designer</div>
      </div>
    </div>
    <div class="main-content">
      <div class="main-content-left">
        <div class="main-content-left-top">
          <div class="m">账户余额(元)</div>
          <div class="r">10584.50</div>
          <div class="r">冻结</div>
          <!-- <el-button class="btn" type="primary">查看教程</el-button> -->
            <div class="btn">
                <el-button>提现</el-button>
                <el-button type="primary" plain>提现记录</el-button>
            </div>
        </div>
        <div class="change">
            <!-- 表单 -->
            <div class="c_id">
                <el-form :inline="true" class="demo-form-inline">
                    <el-form-item label="ID">
                        <el-input placeholder="请输入" clearable />
                    </el-form-item>
                    <el-form-item label="变更余额">
                        <el-input placeholder="请输入" clearable />
                    </el-form-item>
                    <el-form-item label="变更前余额">
                        <el-input placeholder="请输入" clearable />
                    </el-form-item>
                    <el-form-item label="备注">
                        <el-input placeholder="请输入" clearable />
                    </el-form-item>
                </el-form>
            </div>
            <div class="c_pirce">
                <el-form :inline="true" class="demo-form-inline">
                    <el-form-item label="创建时间">
                        <el-date-picker style="width: 519px;" type="daterange" start-placeholder="开始日期"
                            end-placeholder="结束日期"
                            :default-value="[new Date(2010, 9, 1), new Date(2010, 10, 1)]" />
                    </el-form-item>
                    <!-- 搜索/重置 -->
                    <el-button type="primary">
                        <el-icon>
                            <Search />
                        </el-icon>
                        搜索
                    </el-button>
                    <el-button>重置</el-button>
                    
                </el-form>
            </div>
        </div>
      </div>
    </div>
    <div class="cardd">
            <div class="cardd_top">
                <el-button>刷新</el-button>
            </div>
            <div class="cardd_bom">
                <el-table :data="tableData">
                        <!-- 多选  没写事件-->
                        <el-table-column type="selection" width="55px"></el-table-column>
                        <el-table-column prop="msg" label="ID"  />
                        <el-table-column prop="price" label="变更余额" ></el-table-column>
                        <el-table-column prop="totality" label="变更前余额"  />
                        <el-table-column prop="click" label="变更后余额"  />
                        <el-table-column prop="SalesVolume" label="备注" width="800px" />
                        <el-table-column prop="time" label="创建时间"  />
                </el-table>
            </div>
    </div>
  </template>


  <style lang="scss" scoped>
@mixin mainSty{
    margin-top: 10px;
    margin-right: 92px;
    border-radius: 10px;
    background-color: #FFFFFF;
  }
  @mixin carddSty{
    margin: 24px 0 0 24px;
  }
  .main-header {
        width: 100%;
        height: 50px;
        background: #ffffff;
        border-radius: 12px 12px 12px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        &-title {
        margin-left: 0.8rem;
        font-size: 1rem;
        color: #333333;
        font-weight: 600;
        }
        &-avater {
        display: flex;
        align-items: center;
        &-img {
            width: 25px;
            height: 25px;
            border-radius: 3px 3px 3px 3px;
            background-color: #f5f6fa;
            overflow: hidden;
            img {
            width: 100%;
            height: 100%;
            }
        }
        &-username {
            margin-left: 0.4vw;
            font-family: Inter, Inter;
            font-weight: 400;
            font-size: 11px;
            color: #303133;
            line-height: 17px;
            text-align: left;
            font-style: normal;
            text-transform: none;
            margin-right: 1.47vw;
        }
        }
  }
  .main-content {
    margin-top: 8px;
    width: 100%;
    // height: 100%;
    display: flex;
    justify-content: space-between;
    &-left {
      // width: 930px;
      width: 100%;
  
      // 喵教程临时样式
      &-top {
            // width: 100%;
            height: 202px;
            margin-right: 92px;
            // 渐变
            background: linear-gradient(90deg, #409EFF 100%, #3977F0 100%);
            border-radius: 12px 12px 12px 12px;
            display: flex;
            flex-direction: column;
            justify-content: space-between ;
                .m{
                    margin-top: 19px;
                    margin-left: 48px;
                }
                .r{
                    margin: 6px 0 9px 48px;
                }
                .btn{
                    //   width: 105px;
                    height: 30px;
                    margin-bottom: 18px;
                    margin-left: 48px;
                }
        }
        .change {
            // width: 1608px;
            height: 136px;
            // float: left;

            .c_id,
            .c_pirce {
                // width: 1582px;
                height: 32px;
                float: left;
                // background-color: #dea5a5;
                margin-top: 24px;
                margin-left: 24px;
                margin: 24px 0 0 24px;
            }
            @include mainSty()
        }
    }
  }
  .cardd{
        height: 759px;
            &_top,&_bom{
                    .el-button{
                        @include carddSty()
                    }
                @include carddSty()
            }
        @include mainSty()
    }
  </style>